package com.chinasoft.class1.group2;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class WuHuiCheng implements TrueWord {
    List<String> wordList = new ArrayList<String>();

    public WuHuiCheng() {
        wordList.add("你好");
        wordList.add("我好");
        wordList.add("大家好");



    }

    public String getName() {
        return "吴惠城";
    }

    public String getWord() {
        Random random = new Random();
        int index = random.nextInt(wordList.size());
        return this.wordList.get(index);
    }
}
